/*
Copyright 2007 Julian Asamer

This file is part of Fractalicious.

    Fractalicious is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Fractalicious is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Fractalicious.  If not, see <http://www.gnu.org/licenses/>.
*/

#import <CoreFoundation/CoreFoundation.h>
#import <Foundation/Foundation.h>
#import <UIKit/CDStructures.h>
#import <UIKit/UIView-Hierarchy.h>
#import <UIKit/UIHardware.h>
#import <UIKit/UITable.h>
#import <UIKit/UITableCell.h>
#import <UIKit/UITableColumn.h>
#import <UIKit/UIImageAndTextTableCell.h>
#import "SettingsView.h"

@implementation SettingsView 

- (int) numberOfRowsInTable: (UITable *)table
{
    return 1;
}

- (UITableCell *) table: (UITable *)table cellForRow: (int)row column: (int)col
{
	if (row==0) {
		return maxLines;
	}
	return;
}

- (UITableCell *) table: (UITable *)table cellForRow: (int)row column: (int)col
    reusing: (BOOL) reusing
{
    return maxLines; 
}

-(id) init {
	[super initWithFrame: CGRectMake(0.0f, 0.0f,
        320.0f, 480.0f - 16.0f - 32.0f)];

	maxLines = [[UIImageAndTextTableCell alloc] init];
    [maxLines setTitle: @"Nothing yet"]; 
	[maxLines setDisclosureStyle: 2];
	[maxLines setShowDisclosure: YES];

    UITableColumn *col = [[UITableColumn alloc] initWithTitle: @"Settings"
       identifier: @"settings" width: 320.0f];

 	[self setSeparatorStyle: 1];
    [self addTableColumn: col]; 
    [self setDataSource: self];
    //[self setDelegate: self];
	return self;
}

@end